Current Location: Home> Function Categories> tanh

tanh

Hyperbolic tangent
Name:tanh
Category:math
Programming Language:php
One-line Description:Hyperbolic tangent.

Definition and usage

tanh() function returns a hyperbolic tangent.

Example

In this example, we will return a hyperbolic tangent for different numbers:

 <?php
echo ( tanh ( M_PI_4 ) ) ;
echo ( tanh ( 0.50 ) ) ;
echo ( tanh ( - 0.50 ) ) ;
echo ( tanh ( 5 ) ) ;
echo ( tanh ( 10 ) ) ;
echo ( tanh ( - 5 ) ) ;
echo ( tanh ( - 10 ) )
?>

Try it yourself

grammar

 tanh ( x )
parameter describe
x Required. A number.

illustrate

Returns the hyperbolic tangent value of x , defined as sinh(arg)/cosh(arg).

Similar Functions
Popular Articles